package banksystem;

public enum AccountType
	{
		CHECKING("Checking", 0.00, 25.00 ),
		SAVINGS("Savings", 0.015,  100.00);
		
		private String typeName;
		private double interest;
		private double minBalance;
		
		AccountType(String type, double interestRate, double minimumBalance)
		{
			this.typeName = type;
			this.interest = interestRate;
			this.minBalance = minimumBalance;
		}
		
		@Override
		public String toString()
		{
			return new String(this.typeName);
		}
		
		public double getInterestRate()
		{
			return this.interest;
		}
		
		public double getMinimumBalance()
		{
			return this.minBalance;
		}
		
	}